/*
 *    Copyright (c) 2020-2025, sunlei All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Author: sunlei (daizile@126.com) 爱帮科技
 * 编程作品裁判关联表
 */
/*
{
    page:{
        current:1, //当前页数
        size:10   //每页长度
    },
    cond:{ //条件
        eq:{ // 多条件对象
                        id,//Integer
                        judgeId,//Long  裁判ID
                        examRecordId,//Integer  编程答题记录表主键
                    }
    }
}
 */
// 分页查询
function ProgramExamJudgmentPageList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/programexamjudgment/pagequery","post",query,SuccessFunc,FailedFunc);
}
// 列表查询
function ProgramExamJudgmentqueryList(query,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/programexamjudgment/queryList","post",query,SuccessFunc,FailedFunc);
}

// 插入数据
// 参数 数组：[
//                 {
 //                        judgeId,//Long  裁判ID
 //                        examRecordId,//Integer  编程答题记录表主键
//                 }
// ]
// 返回值 ： true
function ProgramExamJudgmentaddObj(obj,SuccessFunc,FailedFunc) {
    slAjax("/abkj-api-match-provider/matchWorkExt/addProgramExamJudgment", "post", obj,SuccessFunc,FailedFunc)
}
// 主键获取数据
function ProgramExamJudgmentgetObj(id,SuccessFunc,FailedFunc){
    slAjax("/abkj-api-match-provider/programexamjudgment/"+id,"get",null,SuccessFunc,FailedFunc);
}

/**
 * 主键更新
 */
function ProgramExamJudgmentupdateById(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/programexamjudgment/updateById","post",query,SuccessFunc,FailedFunc);
}
/**
 * 多条件 更新
 */
function ProgramExamJudgmentupdateByMulCond(query,SuccessFunc,FailedFunc) {
   slAjax("/abkj-api-match-provider/programexamjudgment/updateByMulCond","post",query,SuccessFunc,FailedFunc);
}
// 主键删除数据
function ProgramExamJudgmentdelObj(id,SuccessFunc,FailedFunc) {
  slAjax("/abkj-api-match-provider/programexamjudgment/delete/"+id,"get",null,SuccessFunc,FailedFunc);
}
